from core.domain.core_domain_entities.page import Page
from core.domain.value_object import ValueObject


class PageEntitiesExtractor(ValueObject):
    def extract_page_entities(self, page: Page) -> str:
        """
        This is test example, you need to train extractor model, add onnx to init, predict function
        and some settings to make it actually work
        """
        page.add_page_text(text='This could be actual text')
        return page.return_page_text
